package com.niren.commonmodule.util.supportclass;

import java.util.Date;

/**
 * \* author: wky
 * \* Date: 2024/11/26
 * \* Time: 11:27
 * \* Project: microservice
 * \* Package: com.niren.commonmodule.util.supportclass
 * \* Version: 1.0.0
 * \* To change this template use File | Settings | File Templates.
 * \* Description:请输入源文件描述
 * \
 */
public class UserTokenInfo {
    Integer userId;
    String userName;
    Date expiry;

    public UserTokenInfo() {}

    public UserTokenInfo(String userId, String userName, Date expiry) {
        this.userId = userId==null?-1:Integer.parseInt(userId);
        this.userName = userName;
        this.expiry = expiry;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getExpiry() {
        return expiry;
    }
}
